/*
 * Copyright 2007-2022 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.xajtfb.bus.dao;

import com.github.lvyanyang.annotation.Paging;
import com.xci.xajtfb.bus.entity.WxNewsinformation;
import com.xci.xajtfb.bus.filter.WxNewsinformationFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交通资讯数据层
 * @author 王彦红 wangyanhong@xci96716.com
 * @since 2022-02-10 14:06:00
 */
public interface WxNewsinformationDao {

    /**
     * 根据主键查询单个交通资讯
     * @param id 交通资讯主键
     * @return 返回交通资讯实体
     */
    WxNewsinformation selectById(@Param("id") Integer id);



    /**
     * 查询交通资讯分页列表
     * @param filter 过滤条件
     * @return 返回交通资讯分页列表
     */
    /*
        allowSortNames = {"infoclass","newsinfo","adddate","roadstate","weather","emergency","class","addoper","releasesign","releaseoper","releasedate"},
        sortNameMaps = {"infoclass:infoclass","newsinfo:newsinfo","adddate:adddate","roadstate:roadstate","weather:weather","emergency:emergency","class:class","addoper:addoper","releasesign:releasesign","releaseoper:releaseoper","releasedate:releasedate"}
    */
    @Paging
    List<WxNewsinformation> selectPageList(@Param("filter") WxNewsinformationFilter filter);
}